<?php 
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Chuyên chép game iphone, ipad, luôn cập nhật game mới!" />
<meta name="keywords" content="game, game iphone, game ipad, game hay, game ipod, game ipod touch, game iphone 4, game iphone 4s, game ipad 1, game ipad 3" />
<meta name="author" content="Templates.com - website templates provider" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Danh sách game</title>

<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<link rel="stylesheet" href="css/test.css" />
    <link rel="stylesheet" href="css/960.css" />
 <link rel="stylesheet" href="css/style.css" />
 <link rel="stylesheet" href="css/test1.css" />
  <link rel="stylesheet" href="css/lightbox.css" />
<link rel="stylesheet" href="css/review.css" type="text/css" media="screen" />
<script src="engine/swfobject.js" type="text/javascript"></script> 
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
 $(window).scroll(function(event) {
    var x = 0 - $(this).scrollLeft();
    var y = $(this).scrollTop();

    // whether that's below the form
    if (y>1000) {
        // if so, ad the fixed class
        $('#Cart').addClass('fixed');
    } else {
        // otherwise remove it
        $('#Cart').removeClass('fixed');
    }  
});
	function searchGamejv()
	{
		textSearch = document.getElementById("txtSrcGame").value;
		cate = document.getElementById("mnType").value;
		dev = document.getElementById("mndevice").value;
		searchGame(textSearch,cate,dev,1);
	}
function showLoadingPage()
{
	$("#loadingpage").show();
}  

</script>
<script>

function showgopage()
{
	if($("#pagenav_menu").css("display")=='none')
	{	$("#pagenav_menu").show();
		$("#bggopage").show();
		}
		else
		{
			$("#pagenav_menu").hide();
		$("#bggopage").hide();
			}

}
function hidegopage()
{
	if($("#pagenav_menu").attr("title")!='show')
		{$("#pagenav_menu").hide();
		$("#bggopage").hide();
		}
		$("#pagenav_menu").attr("title","");
	
}
function checkgo()
{
	if(isNaN(document.gopage.go.value))
	return false;
}
</script>






<link rel="stylesheet" type="text/css" href="engine1/style.css" />
	<script type="text/javascript" src="engine1/jquery.js"></script>

</head>

    
<body>
<table class="content" id="tblbody" width="100%">
<tr>
<td>
<div id="loadingpage" style="		
	text-align:center;
	position:fixed;
  z-index: 100;  
  top:49%; 
  left:49%;
  background-color:#A0A0A4;
  opacity:0.7;
  display:none;
  " >
<img src="img/loadingpage.gif" width="55px" height="55px"  />
</div>
<!--<div >-->
  <div class="header">
	<div class="logo"><img src="img/02.png" alt="img" /></div>
    <div class="shop">
        <p class="text">
            <span class="text1">  
                <span class="text2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>  
                <a  href="#">   Advanced Search </a> &nbsp; | 
                <a  href="#"> Shipping &amp; Returns&nbsp;</a>| 
                <a  href="#">   Create an Account  &nbsp;  </a>  |  
                <a  href="#"> Log In</a>
            </span>
        </p>
               
    </div>
	</div>    
<div class="clear"></div>
    <div id="navigation">
			<ul>
            	<li class="index"><a href="index.php">Trang Chủ</a></li>
                <li class="listgame"><a href="danhsachgame.php">Danh Sách Game</a></li>
                <li class="viewbill"><a href="xemhoadon.php">Xem Hóa Đơn</a></li>
				<li class="cart"><a href="giohang.php">Giỏ Hàng</a></li>
                <li class="gamerequest" ><a href="yeucaugame.php">Yêu Cầu Game</a></li>
                <li class="HDChonGame" ><a href="huongdanchongame.php">HD Chọn Game</a></li>
                <li class="Contact"><a href="lienhe.php">Liên Hệ</a></li>
				
				<li class="usermanager" style="display:none;"><a href="#">User Manager</a></li>
   	            <li class="categories" style="display:none;"><a href="#">Categories Manager</a></li>
				<li class="" style="display:none;"><a href="#">Contact Us</a></li>
			</ul>
	</div>  

	<div id="wowslider-container1">
	<div class="ws_images"><ul>
<li><img src="data1/images/1.jpg" alt="1" title="" id="wows1_0"/></li>
<li><img src="data1/images/2.jpg" alt="2" title="" id="wows1_1"/></li>
<li><img src="data1/images/3.jpg" alt="3" title="" id="wows1_2"/></li>
<li><img src="data1/images/4.jpg" alt="4" title="" id="wows1_3"/></li>
<li><img src="data1/images/5.jpg" alt="5" title="" id="wows1_4"/></li>
<li><img src="data1/images/6.jpg" alt="6" title="" id="wows1_5"/></li>
<li><img src="data1/images/7.jpg" alt="7" title="" id="wows1_6"/></li>
</ul></div>
<div class="ws_bullets"><div>
<a href="#" title="1"><img src="data1/tooltips/1.jpg" alt="1"/>1</a>
<a href="#" title="2"><img src="data1/tooltips/2.jpg" alt="2"/>2</a>
<a href="#" title="3"><img src="data1/tooltips/3.jpg" alt="3"/>3</a>
<a href="#" title="4"><img src="data1/tooltips/4.jpg" alt="4"/>4</a>
<a href="#" title="5"><img src="data1/tooltips/5.jpg" alt="5"/>5</a>
<a href="#" title="6"><img src="data1/tooltips/6.jpg" alt="6"/>6</a>
<a href="#" title="7"><img src="data1/tooltips/7.jpg" alt="7"/>7</a>
</div></div>
<a class="wsl" href="http://wowslider.com">Page Slider jQuery by WOWSlider.com v2.5</a>
	<div class="ws_shadow"></div>
	</div>
	<script type="text/javascript" src="engine1/wowslider.js"></script>
	<script type="text/javascript" src="engine1/script.js"></script>
	<!-- End WOWSlider.com BODY section -->

</td></tr>
<tr><td width="1400px"><div class="main">
	<div class="what"><span class="text4" id="title_1">Danh sách game | </span> <input name="txtSrcGame" id="txtSrcGame" type="text" style="border-radius:7px 7px 7px 7px;" onkeydown=" if(event.keyCode==13) searchGamejv();" /> <select name="menu" id="mnType" style="width:100px;" onkeydown=" if(event.keyCode==13) searchGamejv();">
           <option value="0" selected="selected">All</option>
            <?php
			include_once("DataProvider.php");
			$sql = "select * from tbl_categories";
			$result = DataProvider::ExecuteQuery($sql);
			while($row = mysql_fetch_array($result))
			{
				echo'<option value="'.$row["idCategories"].'">'.$row["categories"].'</option>';
			}
			?></select> 
            <select name="mndevice" id="mndevice" style="width:100px;" onkeydown="if(event.keyCode==13) searchGamejv();"> 
            <option value="0" selected="selected">All</option>
            <option value="1" >IPhone</option>
            <option value="2">IPad</option>
            <option value="3">IPad & IPhone</option>
	        
            </select>
            <input name="btnSearch" type="button" onclick="searchGamejv()"  value="Tìm" style="border-radius:5px 5px 5px 5px; cursor:pointer; " /></div>
	<div class="categ"><span class="text4">Thể loại</span></div>

	<div class="blue">

<!-- InstanceBeginEditable name="content" --> 


<div id="ketqua"></div>

<!-- InstanceEndEditable -->

</div>
<div class="ull" id="ull">

<?php
include("process/CategoriesCopy.php");
?>




<div class="pic1" id="Cart">
<div class="b"><span class="text4">Giỏ hàng</span></div>	
<div style="position:absolute;"><a  title="Xem giỏ hàng" href="giohang.php" style="text-decoration:none;"><img src="img/cart-img.png" style="margin-top:-10px;"  alt=""/></a> </div>
<?php
include("process/Cart.php");
?>
 </div>

<!-- InstanceBeginEditable name="EditRegion2" -->
<!-- InstanceEndEditable -->

    

   
</div>
</td></tr><tr><td>
<div id="login-box" class="login-popup" style="display:none;">

        <a class="close"  href="#" onclick="javascript:exit()"><img alt="Close" title="Close Window" class="btn_close" src="img/close_pop.png"></a>
        <span style="color:#FFF;" >Lập hóa đơn</span>
          <form id="signin" name="signin" action="process/processBills.php" class="signin" method="post">
                <fieldset class="textbox">
            	<label class="username">
                <span>Họ Tên or Email</span>
                <input type="text" placeholder="Họ Tên or Email" autocomplete="on" value="" name="username" id="username">
                </label>
                
                <label class="password">
                <span>Điện Thoại</span>
                <input type="text" placeholder="Điện Thoại" value="" name="phone" id="phone">
                </label>
                
                <button type="submit" class="submit button" onclick="return Checker()">Lập hóa đơn</button>
               
                </fieldset>
          </form>
	
      
         
</div>

<div class="clear"></div>

<div id="test"></div> 
<div class="footer">

<div class="foot1"><p class="text6"><a target="_blank" href="">Specials </a> &nbsp;  |&nbsp; <a target="_blank" href="">   Advanced Search </a>  &nbsp; |&nbsp;<a target="_blank" href="">    Reviews </a>  &nbsp; |&nbsp; <a target="_blank" href="">   Create an Account </a> &nbsp;  | &nbsp;<a target="_blank" href="">   Log In</a> &nbsp;  | &nbsp; <?php include("process/countView.php"); ?></p>

</div><div class="foot2">
<div class="v"><p class="text6">Copyright © 2012 <a  href="lienhe.php">  TAMANSU Mobile</a><br>
15 Hoàng Diệu Khu Phố 3 Ba Tri - Bến Tre <br>
Điện thoại: 01234.0123.02 (Mr. Tâm)<br>







</div>
</div>
</div>
<!-- InstanceBeginEditable name="image" -->

<script type="text/javascript" src="js/ajax_framework.js"></script>
<script src="js/lightbox.js"></script>
<script>
showLoadingPage();
 jQuery(document).ready(function($) {
	 $("li.listgame").attr("id","active");
		loadGame(0,1);
	//$("#loadingpage").fadeOut(1000);
 });
</script><!-- InstanceEndEditable -->
</td></tr></table>

<div id="bggopage" style="width: 100%; height: 100%; display:none; z-index:999;
	position: fixed; left: 0; top: 0; " onclick="hidegopage()"></div>
</body>
<!-- InstanceEnd --></html>
